import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/view/login'
import Index from '@/view/index'
import Source from '@/view/source/index'
import Manage from '@/view/source/manage'
import Anchor from '@/view/anchor/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/index',
      name: 'index',
      component: Index
    },
    {
      path: '/anchor',
      name: 'anchor',
      component: Anchor
    },
    { path: '/source',
      name: 'source',
      component: Source
    },
    { path: '/source/manage',
      name: 'manage',
      component: Manage
    }
  ]
})
